//
//  SingleListModel.h
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/16.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, SingleTypeStatus) {
    SingleTypeStatusUnpay = 1,//待付款
    SingleTypeStatusAlreadyPay,
    SingleTypeStatusAlreadySend,
    SingleTypeStatusCompleted,
    SingleTypeStatusAlreadyEvaluate,
    
    SingleTypeStatusSureReceive,
    SingleTypeStatusApplyBack,
    SingleTypeStatusAgreeBack,
    SingleTypeStatusBackSend,
    SingleTypeStatusReceiveBack,//需要确认打款
    SingleTypeStatusBackSuccess,
    SingleTypeStatusRefuseApplyBack,
    //商家的订单状态
};

@interface SingleListModel : NSObject

@property (nonatomic,assign) float freight;
@property (nonatomic,assign) NSInteger ID;
@property (nonatomic,assign) BOOL isNeedInvoice;
@property (nonatomic,assign) BOOL isUserselfPick;
@property (nonatomic,copy) NSString *orderNo;
@property (nonatomic,copy) NSString *payNumber;
@property (nonatomic,assign) NSInteger productCount;
@property (nonatomic,copy) NSString *productName;
@property (nonatomic,copy) NSString *productNo;

@property (nonatomic,assign) NSInteger productType;
@property (nonatomic,strong) NSString *shopName;
@property (nonatomic,assign) float productUnitPrice;
@property (nonatomic,assign) float productPrice;//免费喝字段
@property (nonatomic,assign) NSInteger status;
@property (nonatomic,copy) NSString *thumbnailUrl;
@property (nonatomic,assign) float totalPrice;
@property (nonatomic,assign) NSInteger tradeChannel;
@property (nonatomic,assign) NSInteger type;
@property (nonatomic,assign) NSInteger userId;
//订单详情添加字段
@property (nonatomic,strong) NSString *invoiceTitle;
@property (nonatomic,assign) NSInteger commentStartLevel;//评星
@property (nonatomic,strong) NSString *commentContent;
@property (nonatomic,assign) NSInteger isComment;//是否评论
@property (nonatomic,strong) NSString *receiveAddress;
@property (nonatomic,strong) NSString *receivePerson;
@property (nonatomic,strong) NSString *receivePersonPhone;
@property (nonatomic,strong) NSString *expressCompany;
@property (nonatomic,strong) NSString *courierNumber;
@property (nonatomic,strong) NSString *portraitUrl;
/*
 自己添加记录行号
 **/
@property (nonatomic,strong) NSIndexPath *path;
/*
 自己添加记录是否是商家
 **/
@property (nonatomic,assign) BOOL isBusiness;

+ (instancetype)objectWithDict:(NSDictionary *)dict;

@end
